<% @page_title = '電話受付 ＞ 編集' %>
<h1>Editing reception</h1>

<%= error_messages_for :reception %>

<% form_for(@reception) do |f| %>
  <p>
    <b>Call date</b><br />
    <%= f.date_select :call_date, :use_month_numbers => true %>
  </p>

  <p>
    <b>Notes</b><br />
    <%= f.text_field :notes %>
  </p>

  <p>
    <b>Member</b><br />
    <%= select_tag ('reception_member_id',
            options_from_collection_for_select(@members, 'id', 'name', @reception.member_id),
           :name => 'reception[member_id]') %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @reception %> |
<%= link_to 'Back', receptions_path %>
